package com.sunyard.dal.bo.operator;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author jiy.fang
 * @ClassName OperatorUpdateBO
 * @Description description
 * @date 2019/7/23 18:53
 */
@Data
@ApiModel
public class OperatorUpdateBO implements Serializable {

    private static final long serialVersionUID = -7158417845540270307L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String opName;

    @ApiModelProperty(value = "用户ID")
    private String opId;

    @ApiModelProperty(value = "所属机构")
    @NotBlank(message = "所属机构不能为空")
    private String orgId;

    @ApiModelProperty(value = "所属角色")
    @NotBlank(message = "所属角色不能为空")
    private String roleId;

    @ApiModelProperty(value = "真实姓名")
    @Size(max = 15)
    @NotBlank(message = "姓名不能为空")
    private String opRealname;

    @ApiModelProperty(value = "联系电话")
    private String opTel;

    @ApiModelProperty(value = "登录类型")
    @NotBlank(message = "登录类型不能为空")
    private String loginType;

    @ApiModelProperty(value = "指定审核人")
    @NotBlank(message = "指定审核人不能为空")
    private String auditor;

    @ApiModelProperty(value = "审核类型")
    @NotBlank(message = "审核类型不能为空")
    private String auditType;

}
